package com.jd.dl.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.jd.dl.util.DES;

public class User implements java.io.Serializable {

	private static final long serialVersionUID = -8353116080579228324L;

	private Long userId;
	private String userName;
	private String phoneNumber;
	private String password;
	private Date createdDate;
	private Date lastModified;
	private List<Task> tasks = new ArrayList<Task>();

	public User() {
		
	}
	
	public String getPhoneNumber() {
		return this.phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}


	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getLastModified() {
		return this.lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}

	public String getPwd() {
		return DES.decrypt(this.password);
	}

	public void setPwd(String password) {
		this.password = DES.encrypt(password);
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public List<Task> getTasks() {
		return tasks;
	}

	public void setTasks(List<Task> tasks) {
		this.tasks = tasks;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}